home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / billutil.zip / TFORM.ZIP / TFORM.TXT < prev    next >
Text File  |  1993-11-13  |  1KB  |  33 lines

  1.     TFORM.EXE
  2.  
  3.     Tform is a simple numerical ASCII search and replace program.
  4. You pass TForm a filename to format, the ASCII code of the char to
  5. replace, and any number of characters to replace it with.  Usage is  
  6. as follows: tform filename fromnumber tonumber(s).  Some examples:
  7.  
  8. tform test.txt 13 -1 
  9. (This will delete all carriage returns in the file test.txt.)
  10.  
  11. tform foobar.txt 09 32 32 32 32
  12. (This will change all tabs in foobar.txt to four spaces.)
  13.  
  14.     Tform is primarily intended to be used from a batch file.  Output 
  15. is in file 1$2$3$4$.5$6 which can then be copied over the input file
  16. and deleted.  Included example batch files are UNIX2DOS.BAT and
  17. DOS2UNIX.BAT.  The first changes UNIX newlines (linefeeds only) to DOS
  18. newlines (carriage return + linefeed).  The second changes DOS newlines
  19. to UNIX newlines.
  20.  
  21. ---Handy ASCII values:---
  22. Tab=09 
  23. Linefeed=10
  24. Formfeed=12
  25. CarriageReturn=13
  26. Space=32
  27. '0'=48, ... '9'=57
  28. 'A'=65, ... 'Z'=90
  29. 'a'=97, ... 'z'=122
  30. SPECIAL VALUE FOR DELETION: -1
  31. (Use the -1 'character' to delete a character, as in the example above.)
  32.  
  33.